package com.gitee.feizns.explore.data_structure.linked_list.singly.remove_curt;

/**
 * @author feizns
 * @since 2019/10/24
 */
public class RemoveCurt {

    public static void main(String[] args) {

    }

    public static void deleteNode(ListNode node) {
        ListNode tmp = node.next;
        node.val = tmp.val;
        node.next = tmp.next;
    }

    public class ListNode {
        int val;
        ListNode next;
        ListNode(int x) { val = x; }
    }

}
